package com.partner.match.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 队伍表
 * @TableName team
 */
@TableName(value ="team")
@Data
public class Team implements Serializable {
    /**
     * ID
     */
    @TableId(type = IdType.AUTO)
    private Long teamId;

    /**
     * 队伍名
     */
    private String teamName;

    /**
     * 队伍描述
     */
    private String description;

    /**
     * 最大人数
     */
    private Integer maxNum;

    /**
     * 过期时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date expireTime;

    /**
     * 创建人Id
     */
    private Long userId;

    /**
     * 密码
     */
    private String password;

    /**
     * 状态 0-公开 1-私密 2-加密
     */
    private Integer status;

    /**
     * 是否删除 0-未删除 1-删除
     */
    @TableLogic
    private Integer isDelete;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    /**
     * 修改时间
     */
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public static final String TEAM_ID = "teamId";
    public static final String TEAM_NAME = "teamName";
    public static final String USER_ID = "userId";
    public static final String EXPIRE_TIME = "expireTime";
    public static final String STATUS = "status";
}